import {
	toJS,
} from 'mobx';
import {
	observer,
} from 'mobx-react';
import {
	WeaTableEditable
} from 'ecCom';

@observer
export default class TableEdit extends React.Component {
	constructor(props) {
		super(props);
	}

	render() {
		const {
			store
		} = this.props, {
			TABLEEDIT,
			tableEdit
		} = store, {
			columns,
			datas
		} = tableEdit;



		return (
			<WeaTableEditable ecId={`${this && this.props && this.props.ecId || ''}_WeaTableEditable@trhlqz`} 
				{...TABLEEDIT}
				columns={toJS(columns)}
				datas={toJS(datas)}
			/>
		);
	}
}